Version

GetAppointmentsInRange(DateTime,DateTime,Owner[],Boolean) Method

Returns a collection of Appointment objects that have any part of the appointment in the specified date range.
Syntax
'Declaration
 
Public Overloads Function GetAppointmentsInRange( _
   ByVal startDateTime As Date, _
   ByVal endDateTime As Date, _
   ByVal owners() As Owner, _
   ByVal adjustAllDayEvents As Boolean _
) As AppointmentsSubsetCollection
public AppointmentsSubsetCollection GetAppointmentsInRange( 
   DateTime startDateTime,
   DateTime endDateTime,
   Owner[] owners,
   bool adjustAllDayEvents
)

Parameters

startDateTime
Earliest start time for an appointment.
endDateTime
Latest end time for an appointment.
owners
Only appointments associated with these owners will be included.
adjustAllDayEvents
Specifies whether to automatically adjust the start and end times for appointments whose AllDayEvent property returns true, so that ranges of less than one day in duration include all day events.

Return Value

An AppointmentsSubsetCollection containing all the Appointment objects that overlap with the startDateTime and endDateTime.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also